package com.example.a10908.retorfitrxjava.model;

import com.example.a10908.retorfitrxjava.callback.LoginCallBack;
import com.example.a10908.retorfitrxjava.model.bean.LoginInfoBean;
import com.example.a10908.retorfitrxjava.utils.LoginUtils;

/**
 * Created by 10908 on 2016/12/16.
 */

public class ILoginModel implements LoginModel {
    private LoginCallBack loginCallBack;

    public ILoginModel(LoginCallBack loginCallBack) {
        this.loginCallBack=loginCallBack;
    }

    @Override
    public void startLoginRequest(String name, String password) {
        LoginUtils loginUtils = LoginUtils.getLoginUtils();
        loginUtils.LoginState(name, password);
        loginUtils.setPresenter_login(loginCallBack);
    }

    @Override
    public LoginInfoBean getLoginInfo() {
        LoginUtils loginUtils = LoginUtils.getLoginUtils();
        return null;
    }
}
